home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
COMPILER
/
VP10B003
/
VPC
/
BIN
/
VPPM.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-21
|
875b
|
33 lines
@ECHO OFF
REM *************************************
REM * Compiles and links PM application *
REM *************************************
IF "%1" == "/?" GOTO HELP
IF "%1" == "-?" GOTO HELP
IF "%1" == "" GOTO HELP
SET LINK386=/BAT /NOL /PM:PM /BASE:0x10000 /A:4 /EXEPACK
SET LIB=%VPLIB%
VPC %1.PAS %2 %3 %4 %5 %6 %7 %8 %9
IF ERRORLEVEL 1 GOTO EXIT
LINK386 @%VPOUT%\%1.LNK;
IF ERRORLEVEL 1 GOTO EXIT
IF NOT EXIST %1.RC GOTO BINDONLY
RC -r %1.RC %VPOUT%\%1.RES
IF ERRORLEVEL 1 GOTO EXIT
:BINDONLY
IF NOT EXIST %VPOUT%\%1.RES GOTO EXIT
RC %VPOUT%\%1.RES %VPOUT%\%1.EXE
GOTO EXIT
:HELP
ECHO Compiles and links PM application. Invokes VPC, LINK386 and RC.
ECHO Usage: VPPM PrgName [Options]
ECHO Where:
ECHO PrgName Name of the program file without path and extension
ECHO Options One or several valid VPC command line switches
:EXIT